package com.xiaotu.common.model;

import com.xiaotu.common.util.DataRedisKeyUtils;

/**
 * 艺人获奖实体类
 *
 * @auther GaoHJ
 * @create 2017/12/5
 */
public class StarAwardModel
{
    private String siteName;//网站
    private String name;//艺人名字
    private String awardType;//奖项分类
    private String awardSection;//奖项届季
    private String awardTitle;//奖项头衔
    private String awardWork;//获奖作品
    private String awardRole;//饰演角色
    private String awardTime;//获奖时间
    private String awardMode;//获奖方式：提名／获奖
    private long timestamp;

    public StarAwardModel()
    {
    }

    public StarAwardModel(String siteName, String name, String awardType, String awardSection,
            String awardTitle, String awardWork, String awardRole, String awardTime, String
            awardMode)
    {
        this.siteName = siteName;
        this.name = name;
        this.awardType = awardType;
        this.awardSection = awardSection;
        this.awardTitle = awardTitle;
        this.awardWork = awardWork;
        this.awardRole = awardRole;
        this.awardTime = awardTime;
        this.awardMode = awardMode;
        this.timestamp = System.currentTimeMillis();
    }

    @Override
    public boolean equals(Object o)
    {
        if (this == o)
            return true;
        if (o == null || getClass() != o.getClass())
            return false;

        StarAwardModel that = (StarAwardModel) o;
        return DataRedisKeyUtils.getAwardKey(that).equals(DataRedisKeyUtils.getAwardKey(this));
    }

    @Override
    public int hashCode()
    {
        return DataRedisKeyUtils.getAwardKey(this).hashCode();
    }

    public String getSiteName()
    {
        return siteName;
    }

    public void setSiteName(String siteName)
    {
        this.siteName = siteName;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getAwardType()
    {
        return awardType;
    }

    public void setAwardType(String awardType)
    {
        this.awardType = awardType;
    }

    public String getAwardSection()
    {
        return awardSection;
    }

    public void setAwardSection(String awardSection)
    {
        this.awardSection = awardSection;
    }

    public String getAwardWork()
    {
        return awardWork;
    }

    public void setAwardWork(String awardWork)
    {
        this.awardWork = awardWork;
    }

    public String getAwardRole()
    {
        return awardRole;
    }

    public void setAwardRole(String awardRole)
    {
        this.awardRole = awardRole;
    }

    public String getAwardTime()
    {
        return awardTime;
    }

    public void setAwardTime(String awardTime)
    {
        this.awardTime = awardTime;
    }

    public String getAwardMode()
    {
        return awardMode;
    }

    public void setAwardMode(String awardMode)
    {
        this.awardMode = awardMode;
    }

    public String getAwardTitle()
    {
        return awardTitle;
    }

    public void setAwardTitle(String awardTitle)
    {
        this.awardTitle = awardTitle;
    }

    public long getTimestamp()
    {
        return timestamp;
    }

    public void setTimestamp(long timestamp)
    {
        this.timestamp = timestamp;
    }
}
